style cascade: Allow cascades with more ancestors
authorPhilip Chimento <philip@endlessm.com>
Thu, 16 Jun 2016 03:02:11 +0000 (23:02 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 19 Jun 2016 23:47:05 +0000 (19:47 -0400)
commit76bacfde6e5305021c765ae690972efb1832682d
treeb1e5651becc35792416d312112f7e130c14d593d
parent1c6b878e090666898acd16664851d82067fb5c9e
style cascade: Allow cascades with more ancestors

Previously a style cascade's parent could not have a parent itself. That
represented the two levels at which you could add a style provider: at
the screen level, with gtk_style_context_add_provider_for_screen(), and
at the style context level, with gtk_style_context_add_provider().

This commit changes no functionality, but this change will be necessary
for adding style providers in the future that apply to a subtree of the
widget tree. It relaxes the requirement that a style cascade's parent
must not have a parent, since in the future a style context may be
affected by any number of parent widgets' style contexts.

https://bugzilla.gnome.org/show_bug.cgi?id=751409
gtk/gtkstylecascade.c
testsuite/gtk/stylecontext.c